﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace carsitem.MainInterface
{
    public partial class MainInterfaceForm : Form
    {
        Sunisoft.IrisSkin.SkinEngine se = null;
        string SkinName = "SteelBlack";
        public MainInterfaceForm()
        {
            InitializeComponent();

            se = new Sunisoft.IrisSkin.SkinEngine();
            se.SkinAllForm = true;
            se.SkinFile = "skin/" + SkinName + ".ssk";
        }

        //下拉菜单
        private void 关闭系统ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void 商品信息录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.Commodity.CommodityEntryForm commodityForm = new carsitem.Commodity.CommodityEntryForm();//把form1传给form2
            commodityForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 商品信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.Commodity.CommodityMaintenanceForm commodityMaintenanceForm = new carsitem.Commodity.CommodityMaintenanceForm();//把form1传给form2
            commodityMaintenanceForm.Show();
            this.Hide();//把自己隐藏了
        }
        private void 商品信息一览表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.Commodity.CommdityViewForm commdityViewForm = new carsitem.Commodity.CommdityViewForm();//把form1传给form2
            commdityViewForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 供商信息录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.Supplier.SupplierEntryForm supplierEntryForm = new carsitem.Supplier.SupplierEntryForm();//把form1传给form2
            supplierEntryForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 供商信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.Supplier.SupplierMaintenanceForm supplierMaintenanceForm = new carsitem.Supplier.SupplierMaintenanceForm();//把form1传给form2
            supplierMaintenanceForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 供商信息一览ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.Supplier.SupplierViewForm supplierViewForm = new carsitem.Supplier.SupplierViewForm();//把form1传给form2
            supplierViewForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 录入进货信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.StockManagement.StockManagementEntyForm stockManagementEntyForm = new carsitem.StockManagement.StockManagementEntyForm();//把form1传给form2
            stockManagementEntyForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 查询采购计划ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.StockManagement.StockManagementPlanForm stockManagementPlanForm = new carsitem.StockManagement.StockManagementPlanForm();//把form1传给form2
            stockManagementPlanForm.Show();
            this.Hide();//把自己隐藏了
        }

        private void 库存查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //    carsitem.kucun.chaxun chaxun = new carsitem.kucun.chaxun();//把form1传给form2
            //    //chaxun.Show();
            //    chaxun.Visible = true;
            //    this.Hide();//把自己隐藏了
            kucun.chaxun chaxun = new kucun.chaxun();
            chaxun.Show();
            this.Visible = false;
        }

        private void 库存盘点ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.kucun.kucun kucun = new carsitem.kucun.kucun();//把form1传给form2
            kucun.Show();
            this.Hide();//把自己隐藏了
        }

        private void 销售出库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.xiaoshou.selltable selltable = new xiaoshou.selltable();//把form1传给form2
            selltable.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void 进货入库统计ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.StockManagement.StockManagementPlanForm stockManagementPlanForm = new carsitem.StockManagement.StockManagementPlanForm();//把form1传给form2
            stockManagementPlanForm.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void 销售出库统计ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.xiaoshou.Form1 xiaoshou = new carsitem.xiaoshou.Form1();//把form1传给form2
            xiaoshou.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void 录入员工信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.yuangong.tianjia tianjia = new carsitem.yuangong.tianjia();//把form1传给form2
            tianjia.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void 员工信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.yuangong.weihu weihu = new carsitem.yuangong.weihu();//把form1传给form2
            weihu.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void 员工信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.yuangong.chazhao chazhao = new carsitem.yuangong.chazhao();//把form1传给form2
            chazhao.Show();
            this.Visible = false;//把自己隐藏了
        }

        //按钮菜单
        private void Procurement_Img_Click(object sender, EventArgs e)//采购计划
        {
            carsitem.StockManagement.StockManagementPlanForm stockManagementPlanForm = new carsitem.StockManagement.StockManagementPlanForm();//把form1传给form2
            stockManagementPlanForm.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void toolStripButton7_Click(object sender, EventArgs e)//进货统计
        {
            carsitem.StockManagement.StockManagementPlanForm stockManagementPlanForm = new carsitem.StockManagement.StockManagementPlanForm();//把form1传给form2
            stockManagementPlanForm.Show();
            this.Visible = false;//把自己隐藏了
        }

        
        private void Replenish_Img_Click(object sender, EventArgs e)//进货入库
        {
            carsitem.StockManagement.StockManagementPlanForm stockManagementPlanForm = new carsitem.StockManagement.StockManagementPlanForm();//把form1传给form2
            stockManagementPlanForm.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void Sales_Img_Click(object sender, EventArgs e)//销售出库
        {
            carsitem.xiaoshou.selltable selltable = new xiaoshou.selltable();//把form1传给form2
            selltable.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void toolStripButton4_Click(object sender, EventArgs e)//销售浏览
        {
            carsitem.xiaoshou.KeepSell keepSell = new xiaoshou.KeepSell();
            keepSell.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void toolStripButton5_Click(object sender, EventArgs e)//库存盘点
        {
            carsitem.kucun.kucun kucun = new carsitem.kucun.kucun();//把form1传给form2
            kucun.Show();
            this.Visible = false;//把自己隐藏了
        }

        private void toolStripButton6_Click(object sender, EventArgs e)//销售统计
        {
            carsitem.xiaoshou.Form1 xiaoshou = new carsitem.xiaoshou.Form1();//把form1传给form2
            xiaoshou.Show();
            this.Visible=false;//把自己隐藏了
        }

        private void MainInterfaceForm_Load(object sender, EventArgs e)
        {

        }

        private void 客户信息录入ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.kehu.customer customer = new kehu.customer();
            customer.Show();
            this.Visible = false;
        }

        private void MainInterfaceForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void 客户信息维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.kehu.selectpeople selectpeople = new kehu.selectpeople();
            selectpeople.Show();
            this.Visible = false;
        }

        private void 客户信息查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.kehu.selectpeople selectpeople = new kehu.selectpeople();
            selectpeople.Visible = true;
            this.Visible = false;
        }

        private void 录入员工信息ToolStripMenuItem_Click1(object sender, EventArgs e)
        {
            carsitem.yuangong.tianjia tianjia = new yuangong.tianjia();
            tianjia.Visible = true;
            this.Visible = false;
        }

        private void 员工信息维护ToolStripMenuItem_Click1(object sender, EventArgs e)
        {
            carsitem.yuangong.weihu weihu = new yuangong.weihu();
            weihu.Visible = true;
            this.Visible = false;
        }

        private void 员工信息查询ToolStripMenuItem_Click1(object sender, EventArgs e)
        {
            carsitem.yuangong.chazhao chazhao = new yuangong.chazhao();
            chazhao.Visible = true;
            this.Visible = false;
        }

        private void 销售查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.xiaoshou.KeepSell keepSell = new xiaoshou.KeepSell();
            keepSell.Visible = true;
            this.Visible = false;
        }

        private void 销售维护ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            carsitem.xiaoshou.UpdateSell updateSell = new xiaoshou.UpdateSell();
            updateSell.Visible = true;
            this.Visible = false;
        }
    }
}